package com.mars.miaosha.redis;

/**
 * @author MARS
 * @date 2018/5/7
 */
public class UserKey extends BasePrefix{

    public static final int TOKEN_EXPIRE = 3600 * 24 * 2; //2天

    private UserKey(String prefix) {
        super(prefix);
    }

    private UserKey(int expireSeconds,String prefix) {
        super(expireSeconds,prefix);
    }

    public static UserKey getById = new UserKey("id");
    public static UserKey getByName = new UserKey("name");
    public static UserKey token = new UserKey(TOKEN_EXPIRE,"token");


}
